import request from '@/utils/request'

// 我的接龙列表
export async function apiTuanList(data) {
	return request({
		url: '/supplier/tuan.tlist/index',
		method: 'post',
		data,
	});
}


// 供应商待接受接龙列表
export async function wait_accept_list(data) {
	return request({
		url: '/supplier/supplier.follow/wait_accept_list',
		method: 'post',
		data,
	});
}


// 供应商已接受接龙列表
export async function accept_list(data) {
	return request({
		url: '/supplier/supplier.follow/accept_list',
		method: 'post',
		data,
	});
}


// 我的分销接龙
export async function distributor_follow(data) {
	return request({
		url: '/supplier/supplier.follow/distributor_follow',
		method: 'post',
		data,
	});
}


// 我的分销商
export async function getdistr(data) {
	return request({
		url: '/supplier/supplier.follow/getdistr',
		method: 'post',
		data,
	});
}

// 我的供应商
export async function getsupply(data) {
	return request({
		url: '/supplier/supplier.follow/getsupply',
		method: 'post',
		data,
	});
}

// 修改分销商的备注
export async function change_agency_remark(data) {
	return request({
		url: '/supplier/supplier.link/change_agency_remark',
		method: 'post',
		data,
	});
}

// 修改供应商的备注
export async function change_provider_remark(data) {
	return request({
		url: '/supplier/supplier.link/change_provider_remark',
		method: 'post',
		data,
	});
}

// 删除分销商
export async function dellink(data) {
	return request({
		url: '/supplier/supplier.link/dellink',
		method: 'post',
		data,
	});
}


// 删除供应商
export async function delsupplylink(data) {
	return request({
		url: '/supplier/supplier.link/delsupplylink',
		method: 'post',
		data,
	});
}



// 供应商查看接龙信息
export async function tuanInfo(data) {
	return request({
		url: '/supplier/supplier.follow/tuanInfo',
		method: 'post',
		data,
	});
}

// 发布接龙 
export async function addtuan(data) {
	return request({
		url: '/supplier/tuan.tlist/add',
		method: 'post',
		data,
	});
}

// 删除我的接龙 
export async function apiDelTuan(data) {
	return request({
		url: '/supplier/tuan.tlist/delete',
		method: 'post',
		data,
	});
}

// 删除我的接龙 
export async function apiCopyTuan(data) {
	return request({
		url: '/supplier/tuan.tlist/follow_copy',
		method: 'post',
		data,
	});
}

// 开启关闭接龙 
export async function apiClosetuan(data) {
	return request({
		url: '/supplier/tuan.tlist/closetuan',
		method: 'post',
		data,
	});
}

// 获取分销商
export async function apiGetlinkusers(data) {
	return request({
		url: '/supplier/tuan.tlist/getlinkusers',
		method: 'post',
		data,
	});
}

// 分销
export async function apiSharetuan(data) {
	return request({
		url: '/supplier/supplier.follow/sharetuan',
		method: 'post',
		data,
	});
}


// 供应商接龙待接受 的点击接受接龙
export async function apiAcceptShareTuan(data) {
	return request({
		url: '/supplier/supplier.follow/accept_share_tuan',
		method: 'post',
		data,
	});
}

// 供应商接龙待接受 的点击删除接龙
export async function delete_share(data) {
	return request({
		url: '/supplier/supplier.follow/delete_share',
		method: 'post',
		data,
	});
}


// 分销接龙订单
export async function distributor_follow_order(data) {
	return request({
		url: 'supplier/order.order/distributor_follow_order',
		method: 'post',
		data,
	});
}




// 获取待发货的接龙列表
export async function waitingshipping(data) {
	return request({
		url: 'supplier/tuan.follow/waitingshipping',
		method: 'post',
		data,
	});
}

// 加载所选接龙的 数量数据，用于修改实际发货量
export async function multiFollowActualDistribution(data) {
	return request({
		url: 'supplier/supplier.follow/multiFollowActualDistribution',
		method: 'post',
		data,
	});
}

// 确认实际发货数量，一键发货
export async function multiFollowActualDistributionSave(data) {
	return request({
		url: 'supplier/supplier.follow/multiFollowActualDistributionSave',
		method: 'post',
		data,
	});
}